#ifndef SETTINGS_H
#define SETTINGS_H

#include <QJsonObject>

class Settings
{
public:
    static const Settings &Singleton(void);

    int httpPort() const;
    QString httpRoutePath() const;
    int scpPort() const;
    QString scpAet() const;
    QString scpDbPath() const;
    QString logPath() const;
    int logLevel(int defaultValue = 0) const;
    QString cardAet(QString defaultValue = "DROC") const;
    QString cardEndPoint(QString defaultValue = "http://127.0.0.1:18889/api/readCard") const;
    QString cardModality(QString defaultValue = "DR") const;

private:
    Settings(void);
    Settings(const Settings &) = delete;
    Settings & operator = (const Settings &) = delete;

    QJsonObject m_json;
    static const Settings s_settings;
};

#endif // SETTINGS_H
